package com.taxsearch.service;

import java.util.HashMap;
import java.util.List;

import javax.annotation.Resource;

import com.taxsearch.dao.TestMapper;
import org.springframework.scheduling.annotation.Async;
import org.springframework.stereotype.Service;



@Service
public class TestService {
	@Resource
	private TestMapper testMapper;
	
	public List<HashMap<String, String>> test1(){
		return testMapper.test1();
	}
	
	public List<HashMap<String, String>> test2(HashMap<String, String> parameterMap){
		return testMapper.test2(parameterMap);
	}
	
	@Async
	public void ttt() throws InterruptedException{
		Thread.sleep(5000);
		System.out.println("异步线程休息完毕");
	}
}
